#include<bits/stdc++.h>
using namespace std;
int ri[100010];
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n;
	cin>>n;
	int i,j;
	cin>>i>>j;
	if(ri[i]<ri[j])
    {
        continue;
    }
    if(ri[i]>=ri[j])
    {
        cout<<n;
    }
	return 0;
}

